package team.seekers.catering.food.entity.dto.update;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import team.seekers.catering.food.entity.pojo.ContainIngredientListDTO;
import team.seekers.catering.food.entity.pojo.ContainNutrimentListDO;
import team.seekers.catering.food.entity.pojo.IngredientAnalyzeDTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * 新增用户信息PA
 */
@Data
public class FoodUpdateDTO extends IngredientAnalyzeDTO {

    @NotBlank(message = "食谱id不能为空")
    @Size(max = 20, message = "食谱id长度不能超过19")
    private String id;

    @NotBlank(message = "食谱名称不能为空")
    @Size(max = 20, message = "食谱名称长度不能超过20")
    private String name;

    @NotBlank(message = "食谱描述不能为空")
    @Size(max = 255, message = "食谱名称长度不能超过20")
    private String description;

    @NotBlank(message = "请上传食谱图片")
    @Size(max = 255, message = "食谱名称长度不能超过20")
    private String picture;

}
